<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset={CHARSET}"/>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" >
<title>$navtitle</title>
<meta name="description" content="$metakeywords" /> 
<meta name="keywords" content="$metadescription" />
<link rel="stylesheet" href="source/plugin/aljbd/css/sj/base.css" />
<link rel="stylesheet" href="source/plugin/aljbd/css/sj/module.css" />
{template aljbd:common}
<script src="source/plugin/aljbd/js/jquery.js"></script>
<script type="text/javascript">
    var jq = jQuery.noConflict();
</script>
<script src="source/plugin/aljbd/js/sj/common.js"></script>
<script src="source/plugin/aljbd/js/sj/jquery.plugin.js"></script>
<link rel="stylesheet" href="source/plugin/aljbd/css/sj/plugin.css" />
</head>
<body id="body">
<a name="top"></a>
{template aljbd:header}
<div class="container module-review" id="mobile_body"><div class="panel-comm panel-fullsize">
    <div class="panel-body">
        <div class="form-box">
		<iframe style="display:none" name="myiframe" id="myiframe"></iframe>
            <form id="postform" name="postform" action="plugin.php?id=aljbd&act=comment" method="POST" 
            enctype="multipart/form-data" onsubmit="return checkPostReview(this);" target="myiframe">
                <input type="hidden" name="formhash" value="{FORMHASH}">
                <input type="hidden" name="bid" value="$_GET['bid']">
                
                
                <div class="form-item">
                    <fieldset>
                        <legend>{lang aljbd:sj_dianping_1}<span class="txt-warning">{lang aljbd:sj_dianping_2}</span>:</legend>
                        
                        
                        {if $bd['businesstype']}
						{eval $bustype=explode(',',$bd['businesstype']);}
						{if count($bustype)==1&&$businesstypearr[$bustype[0]]}
						<div class="item-inline">
                            <label for="review_sort2" style="float:left;width:100px;">$businesstypearr[$bustype[0]]</label>
                            <select name="k" id="review_sort2">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
						
						{/if}
						{if count($bustype)==2&&$businesstypearr[$bustype[1]]}
						<div class="item-inline">
                            <label for="review_sort2" style="float:left;width:100px;">$businesstypearr[$bustype[0]]</label>
                            <select name="k" id="review_sort2">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
						<div class="item-inline">
                            <label for="review_sort2" style="float:left;width:100px;">$businesstypearr[$bustype[1]]</label>
                            <select name="h" id="review_sort2">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
						
						{/if}
						{if count($bustype)==3&&$businesstypearr[$bustype[2]]}
						<div class="item-inline">
                            <label for="review_sort2" style="float:left;width:100px;">$businesstypearr[$bustype[0]]</label>
                            <select name="k" id="review_sort2">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
						<div class="item-inline">
                            <label for="review_sort2" style="float:left;width:100px;">$businesstypearr[$bustype[1]]</label>
                            <select name="h" id="review_sort2">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
						<div class="item-inline">
                            <label for="review_sort2" style="float:left;width:100px;">$businesstypearr[$bustype[2]]</label>
                            <select name="f" id="review_sort2">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
						
						{/if}
						{else}
						<div class="item-inline">
                            <label for="review_sort2" style="float:left;width:100px;">{lang aljbd:sj_dianping_3}</label>
                            <select name="f" id="review_sort2">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
                        
                        <div class="item-inline">
                            <label for="review_sort3" style="float:left;width:100px;">{lang aljbd:sj_dianping_9}</label>
                            <select name="h" id="review_sort3">
                                <option value="5" selected="selected">{lang aljbd:sj_dianping_4}</option>
                                <option value="4">{lang aljbd:sj_dianping_5}</option>
                                <option value="3" >{lang aljbd:sj_dianping_6}</option>
                                <option value="2">{lang aljbd:sj_dianping_7}</option>
                                <option value="1">{lang aljbd:sj_dianping_8}</option>
                            </select>
                            <div class="clear"></div>
                        </div>
						{/if}
                        
                        
                    </fieldset>
                </div>
                
                               
                                <div class="form-item">
                    <label for="review_content">{lang aljbd:sj_dianping_10}<span class="txt-warning">{lang aljbd:sj_dianping_2}</span>:</label>
                    <textarea name="commentmessage_1" id="review_content" placeholder="{lang aljbd:sj_dianping_11}" required></textarea>
                </div>
                                <div class="form-submit">
                    <div class="btn-group-vertical full-width">
                        <button type="submit" name="dosubmit" value="Y" class="btn btn-mycolor">{lang aljbd:sj_dianping_12}</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>

function checkPostReview(form) {
    if(jq('#review_content').val().trim()=='') {
        alert('{lang aljbd:sj_dianping_13}');
        return false;
    }
    return true;
}
</script>
<script type="text/javascript">
function tips(txt, fun) {
	jq('.tips').remove();
	var div = jq('<div style="background: url(source/plugin/aljbd/images/tips.png);max-width: 85%;min-height: 77px;min-width: 270px;position: absolute;left: -1000px;top: -1000px;text-align: center;border-radius:10px;"><span style="color: #ffffff;line-height: 77px;font-size: 23px;">' + txt + '</span></div>');
	jq('body').append(div);
	div.css('zIndex', 9999999);
	div.css('left', parseInt((jq(window).width() - div.width()) / 2));
	var top = parseInt(jq(window).scrollTop() + (jq(window).height() - div.height()) / 2);
	div.css('top', top);
	setTimeout(function() {
		div.remove();
		if (fun) {
			fun();
		}
	}, 2000);
}

</script>
</div>
{template aljbd:footer}
</body>
</html>